<template>
	<view>
		<view style="padding: 25rpx;">
			<view class="list">
				<view class="item" v-for="(item, index) in list" :key="index" @click="toPath(item)">
					<view class="lebel">
						{{ item.label }}
					</view>
					<view class="icon">
						<u-icon name="arrow-right" color="#999999"></u-icon>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						label: '商户信息'
					},
					{
						label: '店铺信息'
					},
					// {
					// 	label: '功能信息'
					// }
				]
			};
		},
		methods:{
			toPath(item){
				if(item.label == '商户信息'){
					uni.navigateTo({
						url:'/pages/Business_Information/Businesses'
					})
				} else if(item.label == '店铺信息'){
					uni.navigateTo({
						url:'/pages/Business_Information/information'
					})
				}
			}
		}
	}
</script>

<style scoped lang="scss">
	.list {
		background-color: #FFF;
		border-radius: 10rpx;
		padding: 0 30rpx;
	
		.item {
			height: 100rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 1rpx solid #F4F5F7;
	
			.label {
				font-size: 32rpx;
				font-weight: 400;
				color: #333333;
			}
		}
	
		.item:last-child {
			border-bottom: 0;
		}
	}
</style>
<style>
	page {
		background-color: #F4F5F7;
		box-sizing: border-box;
	}
</style>